{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}Flasky{% endblock %}

{% block page_content %}

<div>
    {% if current_user.is_authenticated %}
        <form method="post" action="">
        {{ form.hidden_tag() }}
        <div class="row" style="padding: 6px 12px 30px;">
            <div class="text-primary" style="font-size: 20px;color: #81b71b;font-weight: bold;padding-bottom: 15px;padding-top: 20px;">
                新建测试计划
            </div>
            <div class="col-lg-2">
                {{ form.plan_name(class="form-control",placeholder="计划名称") }}
            </div>
            <div class="col-lg-2">
                {{ form.subject_id(class="form-control",placeholder="所属项目") }}
            </div>
            <div class="col-lg-2" style="width: 300px">
                {{ form.plan_info(class="form-control",placeholder="项目信息") }}
            </div>
            <div class="col-lg-2">
                {{ form.submit(class_="btn btn-primary") }}
            </div>
        </div>
        </form>
        <div class="text-primary" style="font-size: 20px;font-weight: bold;padding-bottom: 15px;padding-top: 20px;">
                测试计划列表
        </div>
        {% include 'plan/plan_list.html' %}
    {% endif %}
</div>
{% endblock %}